/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx.mapper;

import cn.webrx.entity.Book;
import cn.webrx.vo.BookVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;


/**
 * <p></p>
 * <p>Powered by webrx On 2023-04-25 16:24:03</p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
@Mapper
public interface BookMapper extends BaseMapper<Book> {

    @Select("select id,name,author from t_book")
    List<Map<String, Object>> shows();

    int count();

    @Select("select id,name from t_book")
    List<BookVo> queryAll();
}
